package com.edison.demo.until;

import java.util.Arrays;
import java.util.List;
import java.util.Random;

/**
 * @author edison
 */
public class ChineseCompanyNameGenerator {

    private ChineseCompanyNameGenerator(){
        throw new IllegalStateException("Utility class");
    }

    private static final Random RANDOM = new Random();

    private static final List<String> PREFIXES = Arrays.asList(
            "华", "京", "中", "远", "国", "恒", "瑞", "智", "宏", "天", "德", "广", "信", "金", "百", "东", "联", "海", "亚", "博"
    );

    private static final List<String> MID_WORDS = Arrays.asList(
            "通", "盛", "达", "信", "利", "翔", "安", "捷", "创", "荣", "瑞", "耀", "科", "盈", "力", "洋", "泰", "盛", "佳", "航"
    );

    private static final List<String> SUFFIXES = Arrays.asList(
            "科技有限公司", "集团有限公司", "实业有限公司", "贸易有限公司", "股份有限公司", "网络有限公司", "信息技术有限公司", "物流有限公司",
            "电子商务有限公司", "新能源有限公司", "文化传播有限公司", "金融服务有限公司", "生物科技有限公司", "智能设备有限公司", "咨询有限公司"
    );


    public static String generateCompanyName() {
        String prefix = PREFIXES.get(RANDOM.nextInt(PREFIXES.size()));
        String midWord = MID_WORDS.get(RANDOM.nextInt(MID_WORDS.size()));
        String suffix = SUFFIXES.get(RANDOM.nextInt(SUFFIXES.size()));

        return prefix + midWord + suffix;
    }

}
